<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{GerenciaProjeto.page1}" id="page1">
            <ui:html binding="#{GerenciaProjeto.html1}" id="html1">
                <ui:head binding="#{GerenciaProjeto.head1}" id="head1">
                    <script>
  function initAllRows() {
   var table = document.getElementById("form1:table1");
   table.initAllRows();
  }
</script>
                    <ui:link binding="#{GerenciaProjeto.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{GerenciaProjeto.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{GerenciaProjeto.form1}" id="form1">
                        <div style="height: 102px; left: 0px; top: 0px; position: absolute; width: 762px">
                            <jsp:directive.include file="topo.jspf"/>
                        </div>
                        <div style="height: 458px; left: 0px; top: 104px; position: absolute; width: 206px">
                            <jsp:directive.include file="menu.jspf"/>
                        </div>
                        <div style="height: 38px; left: 0px; top: 560px; position: absolute">
                            <jsp:directive.include file="rodapev.jspf"/>
                        </div>
                        <ui:tabSet binding="#{GerenciaProjeto.tabSet1}" id="tabSet1" selected="tab1" style="height: 454px; left: 208px; top: 104px; position: absolute; width: 550px">
                            <ui:tab binding="#{GerenciaProjeto.tab1}" id="tab1" text="Gerenciar">
                                <ui:panelLayout binding="#{GerenciaProjeto.layoutPanel1}" id="layoutPanel1" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 413px; -rave-layout: grid">
                                    <ui:alert binding="#{GerenciaProjeto.alerta}" id="alerta" style="left: 4px; top: 360px; position: absolute; width: 537px"/>
                                    <ui:textField binding="#{GerenciaProjeto.txtNome}" columns="40" id="txtNome"
                                        style="left: 8px; top: 24px; position: absolute" text="#{SessionBean1.projetoSelecionado.nome}"/>
                                    <ui:label binding="#{GerenciaProjeto.label1}" id="label1" style="left: 8px; top: 8px; position: absolute" text="Nome"/>
                                    <ui:calendar binding="#{GerenciaProjeto.txtDataInicio}" columns="10" id="txtDataInicio"
                                        selectedDate="#{SessionBean1.projetoSelecionado.dataInicio}" style="height: 40px; left: 8px; top: 76px; position: absolute; width: 120px"/>
                                    <ui:label binding="#{GerenciaProjeto.label2}" id="label2" style="left: 8px; top: 52px; position: absolute" text="Data de Inicio"/>
                                    <ui:label binding="#{GerenciaProjeto.label3}" id="label3" style="left: 168px; top: 52px; position: absolute" text="Data de Termino"/>
                                    <ui:calendar binding="#{GerenciaProjeto.txtDataFim}" columns="10" id="txtDataFim" onChange=""
                                        selectedDate="#{SessionBean1.projetoSelecionado.dataPrevistaFim}" style="height: 40px; left: 168px; top: 76px; position: absolute; width: 120px"/>
                                    <ui:label binding="#{GerenciaProjeto.label4}" id="label4" style="left: 8px; top: 124px; position: absolute" text="Gestor"/>
                                    <ui:textField binding="#{GerenciaProjeto.txtGestor}" columns="40" id="txtGestor"
                                        style="left: 8px; top: 140px; position: absolute" text="#{SessionBean1.projetoSelecionado.nomeRequerente}"/>
                                    <ui:textArea binding="#{GerenciaProjeto.txtEscopo}" id="txtEscopo"
                                        style="height: 128px; left: 8px; top: 188px; position: absolute; width: 532px" text="#{SessionBean1.projetoSelecionado.escopo}"/>
                                    <ui:label binding="#{GerenciaProjeto.label5}" id="label5" style="left: 8px; top: 172px; position: absolute" text="Escopo"/>
                                    <ui:button action="#{GerenciaProjeto.btnIncluir_action}" binding="#{GerenciaProjeto.btnIncluir}" id="btnIncluir"
                                        style="left: 367px; top: 320px; position: absolute" text="Incluir"/>
                                    <ui:button action="#{GerenciaProjeto.btnSalvar_action}" binding="#{GerenciaProjeto.btnSalvar}" id="btnSalvar"
                                        style="left: 427px; top: 320px; position: absolute" text="Salvar Alterações"/>
                                </ui:panelLayout>
                            </ui:tab>
                            <ui:tab binding="#{GerenciaProjeto.tab2}" id="tab2" text="Pesquisar">
                                <ui:panelLayout binding="#{GerenciaProjeto.layoutPanel2}" id="layoutPanel2" style="border-width: 1px; background-color: rgb(211, 224, 235); border-left-color: rgb(110, 127, 143); border-right-color: rgb(110, 127, 143); border-bottom-color: rgb(110, 127, 143); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; height: 413px; -rave-layout: grid">
                                    <ui:table augmentTitle="false" binding="#{GerenciaProjeto.table1}" id="table1" paginateButton="true"
                                        paginationControls="true" style="left: 8px; top: 44px; position: absolute" title="Projetos" width="526">
                                        <ui:tableRowGroup binding="#{GerenciaProjeto.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                            selected="#{GerenciaProjeto.selectedState}" sourceData="#{SessionBean1.listaProjetos}" sourceVar="currentRow">
                                            <ui:tableColumn binding="#{GerenciaProjeto.tableColumn1}" id="tableColumn1" onClick="setTimeout(‘initAllRows()’,0)" selectId="#{GerenciaProjeto.radioButton1.id}">
                                                <ui:radioButton binding="#{GerenciaProjeto.radioButton1}" id="radioButton1" label=""
                                                    name="#{GerenciaProjeto.radioButton1.id}" selected="#{GerenciaProjeto.selected}" selectedValue="#{GerenciaProjeto.selectedValue}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciaProjeto.tableColumn2}" headerText="Nome" id="tableColumn2" sort="nome">
                                                <ui:staticText binding="#{GerenciaProjeto.staticText1}" id="staticText1" text="#{currentRow.value['nome']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciaProjeto.tableColumn3}" headerText="Data Inicio" id="tableColumn3" sort="dataInicio">
                                                <ui:staticText binding="#{GerenciaProjeto.staticText2}" id="staticText2" text="#{currentRow.value['dataInicio']}"/>
                                            </ui:tableColumn>
                                            <ui:tableColumn binding="#{GerenciaProjeto.tableColumn4}" headerText="Gestor" id="tableColumn4" sort="nomeRequerente">
                                                <ui:staticText binding="#{GerenciaProjeto.staticText3}" id="staticText3" text="#{currentRow.value['nomeRequerente']}"/>
                                            </ui:tableColumn>
                                        </ui:tableRowGroup>
                                    </ui:table>
                                    <ui:staticText binding="#{GerenciaProjeto.staticText4}" id="staticText4" style="left: 12px; top: 4px; position: absolute" text="Projeto"/>
                                    <ui:textField binding="#{GerenciaProjeto.txtProjetoCriterio}" id="txtProjetoCriterio" style="left: 12px; top: 20px; position: absolute; width: 395px"/>
                                    <ui:button action="#{GerenciaProjeto.btnConsultar_action}" binding="#{GerenciaProjeto.btnConsultar}" id="btnConsultar"
                                        style="left: 415px; top: 20px; position: absolute" text="Procurar"/>
                                    <ui:button action="#{GerenciaProjeto.btnEditar_action}" binding="#{GerenciaProjeto.btnEditar}" id="btnEditar"
                                        style="left: 487px; top: 20px; position: absolute" text="Editar"/>
                                    <ui:alert binding="#{GerenciaProjeto.alerta1}" id="alerta1" style="left: 4px; top: 356px; position: absolute; width: 529px"/>
                                </ui:panelLayout>
                            </ui:tab>
                        </ui:tabSet>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
